package com.ihr360.payroll.service.salarytax.impl;

import com.ihr360.authority.sharing.annonation.AccessControl;
import com.ihr360.authority.sharing.privilege.AccessControlMethod;
import com.ihr360.payroll.dao.SalaryTaxTypeRepository;
import com.ihr360.payroll.model.dto.salary.basecode.SalaryTaxType;
import com.ihr360.payroll.service.salarytax.SalaryTaxTypeService;
import com.ihr360.rest.reposity.SimpleRestReposity;
import com.ihr360.rest.service.AbstractSimpleRestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author richey
 */
@Service
@AccessControl(nacl = AccessControlMethod.METHODS.getAll)
public class SalaryTaxTypeServiceImpl extends AbstractSimpleRestServiceImpl<SalaryTaxType,Long> implements SalaryTaxTypeService {

    @Autowired
    private SalaryTaxTypeRepository salaryTaxTypeReposity;

    @Override
    public SimpleRestReposity<SalaryTaxType, Long> getSimpleRestReposity() {
        return salaryTaxTypeReposity;
    }
}
